package com.woniuxy.pxxt.common.enums;

/**
 * <P> @Author: ideaAdm
 * <P> TODO: Class
 * <P> TODO: 记录用户的报名形式
 * <P> Date: 2022/3/7:20:15
 * <P> Description:
 */

public enum TrainEnrollFormStatus {

    PAGE_REGISTRATION(1, "页面报名"),
    MANUAL_REGISTRATION(2, "手动添加"),

    ;

    private Integer status;
    private String name;

    TrainEnrollFormStatus(Integer status, String name) {
        this.status = status;
        this.name = name;
    }

    public static String getStatusNameByStatus(Integer status) {
        TrainEnrollFormStatus arrObj[] = TrainEnrollFormStatus.values();
        for (TrainEnrollFormStatus obj : arrObj) {
            if (status.intValue() == obj.getStatus().intValue()) {
                return obj.getName();
            }
        }
        return "";
    }



    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
